<?php

require_once('includes/config.php');

// Start session
session_start();

$_SESSION['duser'] = array();
$_SESSION['dugg'] = array();
$_SESSION['bury'] = array();

// Remove the session
unset($_SESSION['duser']);
unset($_SESSION['dugg']);
unset($_SESSION['bury']);

// Remove rememeber me cookie
if(isset($_COOKIE[$config['cookie_name']]))
{
	setcookie($config['cookie_name'],'',time()-3600);
}

// Redirect to front page
header("Location: index.php");
?>